/**
 * Created by hanj on 2020/11/11 19:49
 */
package com.example.demo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 导出对应的实体类
 *
 * @author caoju
 */
@ExcelTarget("user")
@Data
public class User implements Serializable {

    @Excel(name = "id",width=7)
    private Integer id;

    @Excel(name = "姓名",width=15)
    private String name;

    @Excel(name = "性别",replace = { "男_1", "女_2" },width=10)
    private Integer sex;

    @Excel(name = "创建时间",exportFormat = "yyyy-MM-dd HH:mm:ss",width=25)
    private Date createTime;

}
